package com.itheima.demo.demo10;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;

public class bufferRed {
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new FileReader("D:\\法师.txt"));
        ArrayList<String>list=new ArrayList<>();
                String line="";
        while ((line=br.readLine())!=null){
          list.add(line);
        }
        System.out.println(list);
        br.close();
    }

}
